package com.skong.scd.eurekaclientribbon.controller;

import com.skong.scd.eurekaclientribbon.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @Autowired
    private HelloService helloService;

    @GetMapping("/sayHello")
    public String sayHello(){
        return "from: eureka-client-ribbon, msg: " + this.helloService.sayHello();
    }
}
